using System;
using SubSonic; 

namespace ExtraClub.Domain.Entities{

    public partial class VwClubProfile
    {
        public static VwClubProfileCollection LoadByQuery(Query q) {
            VwClubProfileCollection list = new VwClubProfileCollection();
            list.LoadAndCloseReader(VwClubProfile.FetchByQuery(q));
            return list;
        }
        public new static VwClubProfile FetchByID(int id) {
            VwClubProfile ret = null;
            VwClubProfileCollection list = new VwClubProfileCollection();
            list.LoadAndCloseReader(VwClubProfile.FetchByParameter(VwClubProfile.Columns.Id, id));
            if (list.Count > 0){
                ret = list[0];
            }
            return ret;
        }
    }
}
